<style>
.fui-number .minus:before, .fui-number .plus:before {
	border-left: 0 solid #d9d9d9;
}
.fui-number .minus:after, .fui-number .plus:after {
	border-right: 0 solid #d9d9d9;
}
.fui-number:before {
	border-top: 0 solid #d9d9d9;
}
.fui-number:after {border-top: 0 solid #d9d9d9;}
.fui-number .num {
	color:#666;
}
.fui-number .num {
	color:#666;
}
.fui-number.small {
	height: 1.2rem;
	line-height: 1.2rem;
}
.fui-number .minus, .fui-number .plus {
	z-index:0;
}
.fui-number.small .minus{
	color: #fff;
	padding-top:1px;
	background: none;
	border: 1px solid #fff;;
	border-radius:50%;
}
 .fui-number.small .plus {
	color: #fff;
	padding-top:1px;
	background: none;
	border: 1px solid #fff;;
	border-radius:50%;
}
.fui-navbar .cartbtn {padding-right:0.3rem;background:#fff;opacity:1}
.fee-tag-nav, .fee-tagup-nav, .fee-disabled-nav {border-radius:1rem;height:2rem;line-height:2rem;color:#fff;width:100%;font-weight:400;font-size:0.7rem;margin:0.2rem 0;padding:0 0.2rem}
.fee-tagup {background:{{main.syscolor || 'red'}};color:#fff;width:auto;font-weight:400;font-size:0.55rem}
.fee-tag-nav {background:{{main.syscolor || 'red'}}; opacity: 0.58;}
.fee-tagup-nav {background:{{main.syscolor || 'red'}};}
.fee-disabled-nav {background:#bbb;color:#fff;}	
</style>
<div ng-if="pagedata.showbuyji" class="popup" style="z-index:800">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showbuyji=false"></i>
			<div class="fui-page-title c" style="margin-top:-1.5rem">
					<img style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #f2f2f2;" src="../addons/jy_yangjidan/imgs/xiaoji.png" />
					<div ng-if="!pagedata.member.myji ||pagedata.member.myji<=0" class="red">{{!pagedata.youmid?'您':'好友'}}目前还没有认养蛋鸡！</div>
					<div ng-if="pagedata.member.myji>0" class="red">已认养{{pagedata.member.myji||0}}只鸡，待喂{{pagedata.member.noweiji||0}}只，已喂{{pagedata.member.isweiji||0}}只</div>
			</div>
			<div class="fui-cell-group" style="padding:0.5rem;padding-bottom:3rem;max-height:20rem;overflow-y:scroll">
					<div class="fui-cell" style="margin-top:0.2rem;padding:0.5rem;border-radius:0.5rem;background-color: #4491F1;">
						<div class="fui-cell-label">
							<img style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #fff;" src="../addons/jy_yangjidan/imgs/muji.png" />
						</div>
						<div class="fui-cell-text" style="font-size:0.65rem">
							<div class="" style="color:#fff">{{!pagedata.youmid?'租养蛋鸡':'好友还未认养蛋鸡'}}</div>
							<div class="" style="font-size:0.5rem;color:#f9f9f9">当前蛋鸡价格：{{pagedata.pluginset.dj_price||5}}元/只，预测鸡蛋：{{pagedata.pluginset.dj_yudan||5}}枚</div>
							<div >
								<!--<span class="label label-success" ng-click="pagedata.pay_submit({},'jy_yangjidan/index/buyji/')">现付{{pagedata.pluginset.dj_price||5}}租养</span>-->
								<span class="label label-success" ng-click="pagedata.pay_submit(pagedata.post,'jy_yangjidan/index/buyji/isall=1')">全款{{pagedata.pluginset.alldj_price||5}}租养</span>
								<span class="label label-warning" ng-click="post(pagedata.post,'jy_yangjidan/index/buyji/jiefee=1')">赊账{{pagedata.pluginset.dj_price||5}}租养</span>
							</div>
							<div style="margin-top:0.3rem">
								<div class="fui-number small" style="right:0">
									<div class="minus" ng-click="pagedata.minus()"><i class="icon icon-subtract" style="font-size:0.7rem"></i></div>
									<span style="font-size: 0.55rem;color:#fff">{{pagedata.post.buyjinum}}只</span>
									<div class="plus" ng-click="pagedata.plus()"><i class="icon icon-tianjia" style="font-size:0.7rem"></i></div>
								</div>
							</div>
						</div>
					</div>
					<div class="fui-cell" style="margin-top:0.2rem;padding:0.5rem;border-radius:0.5rem;background-color: #cdab6a;">
						<div class="fui-cell-label">
							<img style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #fff;" src="../addons/jy_yangjidan/imgs/xiaoji.png" />
						</div>
						<div class="fui-cell-text" style="font-size:0.65rem">
							<div class="" style="color:#fff">{{!pagedata.youmid?'购买鸡苗':'好友还未认养鸡苗'}}</div>
							<div class="" style="font-size:0.5rem;color:#f9f9f9">当前鸡苗价格：{{pagedata.pluginset.dj_price2||5}}元/只，预测成鸡售价：{{pagedata.pluginset.dj_saleprice2||5}}元/只</div>
							<div>
								<!--<span class="label label-success" ng-click="pagedata.pay_submit({},'jy_yangjidan/index/buyji/type=1')">现付{{pagedata.pluginset.dj_price2||5}}认养</span>-->
								<span class="label label-success" ng-click="pagedata.pay_submit(pagedata.post,'jy_yangjidan/index/buyji/type=1&isall=1')">全款{{pagedata.pluginset.alldj_price2||5}}认养</span>
								<span class="label label-warning" ng-click="post(pagedata.post,'jy_yangjidan/index/buyji/type=1&jiefee=1')">赊账{{pagedata.pluginset.dj_price2||5}}认养</span>
							</div>
							<div style="margin-top:0.3rem">
								<div class="fui-number small" style="right:0">
									<div class="minus" ng-click="pagedata.minus()"><i class="icon icon-subtract" style="font-size:0.7rem"></i></div>
									<span style="font-size: 0.55rem;color:#fff">{{pagedata.post.buyjinum}}只</span>
									<div class="plus" ng-click="pagedata.plus()"><i class="icon icon-tianjia" style="font-size:0.7rem"></i></div>
								</div>
							</div>
						</div>
					</div>
			</div>
		</div>
	</div>
	<script>
	scope.pagedata.minus=function(goodsid,index){
		if(scope.pagedata.post.buyjinum<=0){
			return false;
		}
		scope.pagedata.post.buyjinum--;
		scope.$evalAsync();
	}
	//增加
	scope.pagedata.plus=function(){
		scope.pagedata.post.buyjinum++
		scope.$evalAsync();
	}
	</script>
</div>